home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / cachectl.h.z / cachectl.h
C/C++ Source or Header  |  1992-04-03  |  2KB  |  60 lines

  1. #ifndef    __SYS_CACHECTL_H__
  2. #define    __SYS_CACHECTL_H__
  3. /**************************************************************************
  4.  *                                      *
  5.  *          Copyright (C) 1990, Silicon Graphics, Inc.          *
  6.  *                                      *
  7.  *  These coded instructions, statements, and computer programs  contain  *
  8.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  9.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  10.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  11.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  12.  *                                      *
  13.  **************************************************************************/
  14. /* --------------------------------------------------- */
  15. /* | Copyright (c) 1986 MIPS Computer Systems, Inc.  | */
  16. /* | All Rights Reserved.                            | */
  17. /* --------------------------------------------------- */
  18.  
  19. #ident "$Revision: 1.9 $"
  20.  
  21. /*
  22.  * cachectl.h -- defines for MIPS cache control system calls
  23.  */
  24.  
  25. /*
  26.  * Options for cacheflush system call
  27.  */
  28. #define    ICACHE    0x1        /* flush i cache */
  29. #define    DCACHE    0x2        /* flush d cache */
  30. #define    BCACHE    (ICACHE|DCACHE)    /* flush both caches */
  31.  
  32. /*
  33.  * Options for cachectl system call
  34.  */
  35. #define    CACHEABLE    0    /* make page(s) cacheable */
  36. #define    UNCACHEABLE    1    /* make page(s) uncacheable */
  37.  
  38. /* The IP17 tracks the number of errors in tags and data for each of the
  39.  * caches, and provides a syssgi() call to allow cmd/ecc to fetch them
  40.  * for display. */
  41. #define ECC_ERR_TYPES    8
  42. enum ecc_err_types { PI_DERRS = 0, PI_TERRS, PD_DERRS, PD_TERRS, 
  43.              SC_DERRS, SC_TERRS, SYSAD_ERRS, NO_ERROR };
  44.  
  45. #ifndef _KERNEL
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. extern int    cachectl(void *, int, int);
  52. extern int    cacheflush(void *, int, int);
  53.  
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57.  
  58. #endif /* _KERNEL */
  59. #endif /* __SYS_CACHECTL_H__ */
  60.